package demo.game.chess.common;

public enum EnumCastling {

	topLeft(new ChessCell(0, 4), new ChessCell(0, 2), new ChessCell(0, 0),
			new ChessCell(0, 3)), topRight(new ChessCell(0, 4), new ChessCell(
			0, 6), new ChessCell(0, 7), new ChessCell(0, 5)), bottomLeft(
			new ChessCell(7, 4), new ChessCell(7, 2), new ChessCell(7, 0),
			new ChessCell(7, 3)), bottomRight(new ChessCell(7, 4),
			new ChessCell(7, 6), new ChessCell(7, 7), new ChessCell(7, 5));

	private final ChessCell originKingCell;

	private final ChessCell targetKingCell;

	private final ChessCell originRookCell;

	private final ChessCell targetRookCell;

	private EnumCastling(final ChessCell originKingCell,
			final ChessCell targetKingCell, final ChessCell originRookCell,
			final ChessCell targetRookCell) {
		this.originKingCell = originKingCell;
		this.targetKingCell = targetKingCell;
		this.originRookCell = originRookCell;
		this.targetRookCell = targetRookCell;
	}

	public ChessCell getOriginKingCell() {
		return this.originKingCell;
	}

	public ChessCell getOriginRookCell() {
		return this.originRookCell;
	}

	public ChessCell getTargetKingCell() {
		return this.targetKingCell;
	}

	public ChessCell getTargetRookCell() {
		return this.targetRookCell;
	}

}